<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Start your next web project with Pure.">
{% block head %}
    <title>{% block title %}{% endblock %}</title>
<link rel="stylesheet" href="/pure/0.6.0/pure-min.css">
<!--[if lte IE 8]>
    <link rel="stylesheet" href="/pure/0.6.0/grids-responsive-old-ie-min.css">
<![endif]-->
<!--[if gt IE 8]><!-->
    <link rel="stylesheet" href="/pure/0.6.0/grids-responsive-min.css">  
<!--<![endif]-->
<!--[if lt IE 9]>
    <script src="/js/html5shiv.js"></script>
<![endif]-->
    <!--[if lte IE 8]>
        <link rel="stylesheet" href="/css/layouts/side-menu-old-ie.css">
    <![endif]-->
    <!--[if gt IE 8]><!-->
        <link rel="stylesheet" href="/css/layouts/side-menu.css">
    <!--<![endif]-->
    <link rel="stylesheet" href="/css/layouts/style.css">
{% endblock %}

</head>
<body>

<div id="layout">
    <!-- Menu toggle -->
    <a href="#menu" id="menuLink" class="menu-link">
        <!-- Hamburger icon -->
        <span></span>
    </a>

    <div id="menu">
        <div class="pure-menu">
        {% if wp_user %}
            <a class="pure-menu-heading" href="/disease">病种</a>
            <ul class="pure-menu-list">
                <li class="pure-menu-item"><a href="/disease/add" class="pure-menu-link">新增</a></li>
                <li class="pure-menu-item"><a href="/logout" class="pure-menu-link">退出({{wp_user.user_nicename}})</a></li>
                {# <li class="pure-menu-item pure-menu-selected"><a href="#" class="pure-menu-link">Services</a></li> #}
            </ul>
        {% else %}
            <a class="pure-menu-heading" href="/">登录</a>
        {% endif %}
        </div>
    </div>

    <div id="main">

{% block content %}{% endblock %}

    </div>
</div>

 


<script src="/js/ui.js"></script>
</body>
</html>